/**
 * 解析静态资源地址
 * @param url
 * @returns {string}
 */
export const resolveAssetsUrl = (url) => {
	return new URL(`../assets/${url}`, import.meta.url).href;
}

export default {
	install(app) {
		app.config.globalProperties.$resolveAssetsUrl = resolveAssetsUrl;
	}
}